<template>
<div>
    <h3>{{title}}</h3>
        <ul>
            <li v-for='item in goodsList' :key='item.id'>
                <img v-lazy="item.list_pic_url" alt="">
                <p class="p1">{{item.name}}</p>
                <p class="p2">{{item.retail_price | formatMoney}}</p>
            </li>
        </ul>
    
</div>
</template>
<script>
export default {
name: 'Categorys',
data() {
return {}
},
props:['goodsList','title'],
components: {
},
methods: {
},
created() {
    // console.log(goodsList.item);
},
mounted() {},
updated() {},
};
</script>
<style scoped lang='less'>
 h3{
        text-align: center;
    background-color: white;
    height: 40px;
    line-height: 40px;
    font-size: 18px;
    color: #000000;
    padding-bottom: 10px;
    font-weight:900;
    }
ul{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    background-color: white;
    li{
    width: 49%;
    padding-bottom:5px ;
    position: relative;
    .p1{
            font-size: 16px;
            text-align: center;
        
            color: #000000;
        }
    .p2{
            font-size: 14px;
            text-align: center;
          padding-top: 10px;
            
            color: #d8322d;
          
        }
    img{
        width: 100%;
        
    }
    }
}
</style>